<div [formGroup]="fieldForm">
    <div class="form-group row">
        <label class="col-3 col-form-label">{{ "schemas.field.editor" | sqxTranslate }}</label>
        <div class="col-9">
            @for (editor of editors; track editor) {
                <label class="btn btn-radio" [class.active]="fieldForm.controls['editor'].value === editor">
                    <input class="radio-input" formControlName="editor" name="editor" type="radio" [value]="editor" />
                    <i class="icon-control-{{ editor }}"></i> <span class="radio-label">{{ editor }}</span>
                </label>
            }
        </div>
    </div>

    @if (field.properties.isContentField) {
        <div class="form-group row">
            <div class="col-9 offset-3">
                <div class="form-check">
                    <input class="form-check-input" id="{{ field.fieldId }}_fieldResolveReference" formControlName="resolveReference" type="checkbox" />
                    <label class="form-check-label" for="{{ field.fieldId }}_fieldResolveReference">
                        {{ "schemas.fieldTypes.references.resolve" | sqxTranslate }}
                    </label>
                </div>
                <sqx-form-hint> {{ "schemas.fieldTypes.references.resolveHint" | sqxTranslate }} </sqx-form-hint>
            </div>
        </div>
    }

    <div class="form-group row">
        <label class="col-3 col-form-label" for="{{ field.fieldId }}_query">
            {{ "schemas.fieldTypes.references.query" | sqxTranslate }}
        </label>
        <div class="col-9">
            <input class="form-control" id="{{ field.fieldId }}_query" formControlName="query" type="text" />
            <sqx-form-hint> {{ "schemas.fieldTypes.references.queryHint" | sqxTranslate }} </sqx-form-hint>
        </div>
    </div>
</div>
